package com.ssy.lingxi.workflow.repository;

import com.ssy.lingxi.workflow.entity.InternalProcessRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户角色与前端菜单权限的关联Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-04-28
 */
@Repository
public interface InternalProcessRoleRepository extends JpaRepository<InternalProcessRole, Long>, JpaSpecificationExecutor<InternalProcessRole> {
    List<InternalProcessRole> findByUrlIn(List<String> urls);

    List<InternalProcessRole> findBySourceAndUrlIn(Integer source, List<String> urls);
}
